﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    /// <summary>
    /// Define Authority Interface
    /// </summary>
    public interface IAuthorityRepository
    {
        bool AddNewAuthority(Authority authority);

        bool DeleteAuthority(int authorityId);

        bool UpdateAuthority(Authority authority);

        Authority GetAuthorityById(int authorityId);

        List<AuthorityLevel> GetAllAuthorityLevel();

        List<Authority> GetAllAuthority();

        List<Authority> SearchAuthority(string authorityName, int levelId);
    }
}

